<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    /* 

     */
     function Fn(){
      this.x = 100;
      this.y = 100;
     }

     let f1 = new Fn();
     let f2 = new Fn;
     // 构造函数模式解决的是实例的私有属性问题
     // 原型模式解决的是实例的共有属性问题


  </script>
</body>
</html>